package org.example.seata.bs.api.dto.order;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * @author hzq
 * @date 2021/11/17 15:26
 */
@Data
@ApiModel(description = "订单详情")
public class OrderInfoDto {

    @ApiModelProperty("产品id")
    @NotNull(message = "产品id不能为空")
    private Integer productId;

    @ApiModelProperty("产品数量")
    @NotNull(message = "产品数量不能为空")
    private BigDecimal productCount;
}
